/* ================= PALETA FEMENINA ================= */
:root {
	--pink-main: #f48fb1;
	--pink-soft: #fde4ec;
	--lavender: #cdb4db;
	--text-dark: #4a4a4a;
}

/* ================= GENERAL ================= */
body {
	font-family: 'Segoe UI', sans-serif;
	color: var(--text-dark);
	background: linear-gradient(180deg,
			#fff5f8 0%,
			#fde4ec 40%,
			#ffffff 100%);
}

/* ================= FONDO ANIMADO ================= */
.bg-shapes {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.shape {
	position: absolute;
	opacity: .25;
	animation: float 6s ease-in-out infinite;
}

.shape.circle {
	width: 240px;
	height: 240px;
	background: var(--pink-main);
	border-radius: 50%;
	left: -120px;
	top: 20%;
}

.shape.circle.small {
	width: 160px;
	height: 160px;
	top: 65%;
	left: -80px;
	animation-delay: 3s;
}

.shape.blob {
	width: 300px;
	height: 300px;
	background: var(--lavender);
	border-radius: 40% 60% 70% 30%;
	right: -150px;
	top: 15%;
	animation-delay: 2s;
}

.shape.blob.small {
	width: 200px;
	height: 200px;
	bottom: 10%;
	right: -100px;
	animation-delay: 5s;
}

@keyframes float {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-60px);
	}

	100% {
		transform: translateY(0);
	}
}

/* ================= NAV ================= */
.navbar {
	background: transparent;
}

/* ================= SEARCH BAR ================= */
.search-bar {
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
}

/* ================= INFO BAR ================= */
.info-box {
	background: white;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

/* ================= PRODUCT CARD ================= */
.product-card {
	position: relative;
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
	transition: transform .3s;
}

.product-card:hover {
	transform: translateY(-5px);
}

.product-card img {
	height: 150px;
	object-fit: cover;
}

.product-card .card-body {
	padding: 10px;
}

.product-card h6 {
	font-size: 14px;
	margin-bottom: 4px;
}

.price {
	font-size: 14px;
	font-weight: bold;
	color: var(--pink-main);
	margin-bottom: 6px;
}

/* ================= LIKE ================= */
.like-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 20px;
	cursor: pointer;
	color: #bbb;
}

.like-icon.liked {
	color: #ff4d88;
}

/* ================= CANTIDAD ================= */
.quantity-control {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.quantity-control input {
	width: 32px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 13px;
	font-weight: bold;
}

.btn-qty {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
	color: white;
	font-size: 14px;
}

/* ================= BOTONES ================= */
.btn-primary {
	background: linear-gradient(135deg, var(--pink-main), var(--lavender));
	border: none;
	font-size: 13px;
	padding: 6px;
}

/* ================= SIDEBAR ================= */
.sidebar-sticky {
	position: sticky;
	top: 90px;
}

.sidebar-sticky .card {
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.badge-soft {
	background: var(--pink-soft);
	color: var(--pink-main);
	margin: 2px;
}

.sidebar-list li {
	padding: 6px 0;
	cursor: pointer;
}

.sidebar-list li:hover {
	color: var(--pink-main);
}

/* ================= PAGINACIÓN ================= */
.pagination .page-link {
	border: none;
	color: var(--text-dark);
}

.pagination .active .page-link {
	background: var(--pink-main);
	color: white;
	border-radius: 50%;
}

/* ================= GALERÍA EN TARJETA ================= */
.product-images {
	position: relative;
	height: 150px;
	overflow: hidden;
}

.product-images img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 150px;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.product-images img.active {
	opacity: 1;
}

.like-icon {
	z-index: 5;
}

.product-images {
	z-index: 1;
}

/* ================= INDICADORES DE IMAGEN ================= */
.image-indicators {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 6px;
}

.image-indicators span {
	width: 18px;
	height: 3px;
	background: #ddd;
	border-radius: 3px;
	cursor: pointer;
	transition: background .3s;
}

.image-indicators span.active {
	background: var(--pink-main);
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

	/* Quitar figuras grandes en móvil */
	.bg-shapes {
		display: none;
	}

	/* Navbar más compacta */
	.navbar-brand {
		font-size: 16px;
	}

	/* Cards más grandes y cómodas */
	.product-card img,
	.product-images,
	.product-images img {
		height: 220px;
	}

	.product-card h6 {
		font-size: 16px;
	}

	.price {
		font-size: 16px;
	}

	/* Botones más grandes para el dedo */
	.btn-primary,
	.btn-qty {
		font-size: 15px;
		padding: 8px;
	}

	/* Ocultar sidebar en móvil */
	.sidebar-sticky {
		display: none;
	}

	/* Productos a 1 por fila */
	#products>div {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Search bar en vertical más limpio */
	.search-bar .btn,
	.search-bar input,
	.search-bar select {
		font-size: 14px;
	}
}

.color {
	background-color: #f48fb1;
	color: #fff;
}

/* =========================
   OVERLAY GLOBAL
   ========================= */

#spinner {
  position: fixed;
  inset: 0;
  display: none;

  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.7);
  z-index: 99999; /* ENCIMA DE TODO */
}

#spinner.active {
  display: flex;
}

/* =========================
   CONTENIDO CENTRADO
   ========================= */

.spinner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* =========================
   SPINNER
   ========================= */

.sk-cube-grid {
  width: 40px;
  height: 40px;
}

.sk-cube {
  width: 33%;
  height: 33%;
  background-color: #d685c0;
  float: left;
  animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

/* delays */
.sk-cube1 { animation-delay: 0.2s; }
.sk-cube2 { animation-delay: 0.3s; }
.sk-cube3 { animation-delay: 0.4s; }
.sk-cube4 { animation-delay: 0.1s; }
.sk-cube5 { animation-delay: 0.2s; }
.sk-cube6 { animation-delay: 0.3s; }
.sk-cube7 { animation-delay: 0s; }
.sk-cube8 { animation-delay: 0.1s; }
.sk-cube9 { animation-delay: 0.2s; }

/* =========================
   TEXTO
   ========================= */

.spinner-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}

/* =========================
   ANIMACIÓN
   ========================= */

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    transform: scale3D(1, 1, 1);
  }
  35% {
    transform: scale3D(0, 0, 1);
  }
}
